package com.jufa_3.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class MonitoringTask implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String payId;

    private String openId;

    private String type;

    private String nameOrKeyword;

    private String sendPhoneNum;

    private LocalDateTime endDate;

    private LocalDateTime createDate;

    private String enable;

    @TableField(exist = false)
    private String state = "1";

    public MonitoringTask(String payId, String openId, String type,String sendPhoneNum, String nameOrKeyword, LocalDateTime endDate, LocalDateTime createDate) {
        this.payId = payId;
        this.openId = openId;
        this.type = type;
        this.sendPhoneNum = sendPhoneNum;
        this.nameOrKeyword = nameOrKeyword;
        this.endDate = endDate;
        this.createDate = createDate;
    }
}
